package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-07-01
 * Time: 9:50
 */
interface IShape{

    int a = 10;
    public static final int b = 10;
void draw();
//    void fun();
//    public abstract  void fun1();

    default public void fun2(){

    }
    static public void fun3(){

    }
}
abstract class T implements IShape{
    //抽象类可以不重写接口里的抽象方法
    abstract public void t();
}
class A extends T{

    @Override
    public void draw() {

    }

    @Override
    public void t() {

    }
}

class Flower implements IShape{
    @Override
    public void fun2(){

    }
    @Override
    public void draw() {
        System.out.println("💐");
    }
}
public class Test {
    public static void drawMap(IShape shape){
        shape.draw();
    }
    public static void main(String[] args) {
        drawMap(new Flower());
    }
}
